package com.senjoeson.publicsource.java

import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.TextView

import com.senjoeson.publicsource.R

/**
 * @author sunqiao
 * @date 2018/5/28 10:44
 */

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val textView = findViewById<TextView>(R.id.textview)
        textView.text = "这是就kotlin的魅力"
        textView.setOnClickListener { startActivity(Intent(this@MainActivity, MainTabActivity::class.java)) }
    }
}
